package com.crazyhat.crazyhat.anno;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.crazyhat.crazyhat.vaildation.ClubCategoryValidation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;


/**
 * 社团分类校验注解
 */
@Documented
@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ClubCategoryValidation.class)
public @interface ClubCategoryAnno {

    /**
     * 校验失败提示信息
     * @return
     */
    String message() default "{ClubCategory参数值有误}";

    /**
     * 指定分组
     * @return
     */
	Class<?>[] groups() default { };

	Class<? extends Payload>[] payload() default { };
}
